Optimal. Leaf size=198 \[ -\frac {x \text {sech}^{-1}(a x)}{a^2}-\frac {x \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)^2}{2 a^2}+\frac {1}{3} x^3 \text {sech}^{-1}(a x)^3-\frac {\text {sech}^{-1}(a x)^2 \text {ArcTan}\left (e^{\text {sech}^{-1}(a x)}\right )}{a^3}+\frac {\text {ArcTan}\left (\frac {\sqrt {\frac {1-a x}{1+a x}} (1+a x)}{a x}\right )}{a^3}+\frac {i \text {sech}^{-1}(a x) \text {PolyLog}\left (2,-i e^{\text {sech}^{-1}(a x)}\right )}{a^3}-\frac {i \text {sech}^{-1}(a x) \text {PolyLog}\left (2,i e^{\text {sech}^{-1}(a x)}\right )}{a^3}-\frac {i \text {PolyLog}\left (3,-i e^{\text {sech}^{-1}(a x)}\right )}{a^3}+\frac {i \text {PolyLog}\left (3,i e^{\text {sech}^{-1}(a x)}\right )}{a^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 198, normalized size of antiderivative = 1.00, number of steps
used = 11, number of rules used = 8, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.800, Rules used = {6420, 5526,
4271, 3855, 4265, 2611, 2320, 6724} \begin {gather*} \frac {\text {ArcTan}\left (\frac {\sqrt {\frac {1-a x}{a x+1}} (a x+1)}{a x}\right )}{a^3}-\frac {\text {sech}^{-1}(a x)^2 \text {ArcTan}\left (e^{\text {sech}^{-1}(a x)}\right )}{a^3}+\frac {i \text {sech}^{-1}(a x) \text {Li}_2\left (-i e^{\text {sech}^{-1}(a x)}\right )}{a^3}-\frac {i \text {sech}^{-1}(a x) \text {Li}_2\left (i e^{\text {sech}^{-1}(a x)}\right )}{a^3}-\frac {i \text {Li}_3\left (-i e^{\text {sech}^{-1}(a x)}\right )}{a^3}+\frac {i \text {Li}_3\left (i e^{\text {sech}^{-1}(a x)}\right )}{a^3}-\frac {x \sqrt {\frac {1-a x}{a x+1}} (a x+1) \text {sech}^{-1}(a x)^2}{2 a^2}-\frac {x \text {sech}^{-1}(a x)}{a^2}+\frac {1}{3} x^3 \text {sech}^{-1}(a x)^3 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2320
Rule 2611
Rule 3855
Rule 4265
Rule 4271
Rule 5526
Rule 6420
Rule 6724
Rubi steps
\begin {align*} \int x^2 \text {sech}^{-1}(a x)^3 \, dx &=-\frac {\text {Subst}\left (\int x^3 \text {sech}^3(x) \tanh (x) \, dx,x,\text {sech}^{-1}(a x)\right )}{a^3}\\ &=\frac {1}{3} x^3 \text {sech}^{-1}(a x)^3-\frac {\text {Subst}\left (\int x^2 \text {sech}^3(x) \, dx,x,\text {sech}^{-1}(a x)\right )}{a^3}\\ &=-\frac {x \text {sech}^{-1}(a x)}{a^2}-\frac {x \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)^2}{2 a^2}+\frac {1}{3} x^3 \text {sech}^{-1}(a x)^3-\frac {\text {Subst}\left (\int x^2 \text {sech}(x) \, dx,x,\text {sech}^{-1}(a x)\right )}{2 a^3}+\frac {\text {Subst}\left (\int \text {sech}(x) \, dx,x,\text {sech}^{-1}(a x)\right )}{a^3}\\ &=-\frac {x \text {sech}^{-1}(a x)}{a^2}-\frac {x \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)^2}{2 a^2}+\frac {1}{3} x^3 \text {sech}^{-1}(a x)^3-\frac {\text {sech}^{-1}(a x)^2 \tan ^{-1}\left (e^{\text {sech}^{-1}(a x)}\right )}{a^3}+\frac {\tan ^{-1}\left (\frac {\sqrt {\frac {1-a x}{1+a x}} (1+a x)}{a x}\right )}{a^3}+\frac {i \text {Subst}\left (\int x \log \left (1-i e^x\right ) \, dx,x,\text {sech}^{-1}(a x)\right )}{a^3}-\frac {i \text {Subst}\left (\int x \log \left (1+i e^x\right ) \, dx,x,\text {sech}^{-1}(a x)\right )}{a^3}\\ &=-\frac {x \text {sech}^{-1}(a x)}{a^2}-\frac {x \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)^2}{2 a^2}+\frac {1}{3} x^3 \text {sech}^{-1}(a x)^3-\frac {\text {sech}^{-1}(a x)^2 \tan ^{-1}\left (e^{\text {sech}^{-1}(a x)}\right )}{a^3}+\frac {\tan ^{-1}\left (\frac {\sqrt {\frac {1-a x}{1+a x}} (1+a x)}{a x}\right )}{a^3}+\frac {i \text {sech}^{-1}(a x) \text {Li}_2\left (-i e^{\text {sech}^{-1}(a x)}\right )}{a^3}-\frac {i \text {sech}^{-1}(a x) \text {Li}_2\left (i e^{\text {sech}^{-1}(a x)}\right )}{a^3}-\frac {i \text {Subst}\left (\int \text {Li}_2\left (-i e^x\right ) \, dx,x,\text {sech}^{-1}(a x)\right )}{a^3}+\frac {i \text {Subst}\left (\int \text {Li}_2\left (i e^x\right ) \, dx,x,\text {sech}^{-1}(a x)\right )}{a^3}\\ &=-\frac {x \text {sech}^{-1}(a x)}{a^2}-\frac {x \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)^2}{2 a^2}+\frac {1}{3} x^3 \text {sech}^{-1}(a x)^3-\frac {\text {sech}^{-1}(a x)^2 \tan ^{-1}\left (e^{\text {sech}^{-1}(a x)}\right )}{a^3}+\frac {\tan ^{-1}\left (\frac {\sqrt {\frac {1-a x}{1+a x}} (1+a x)}{a x}\right )}{a^3}+\frac {i \text {sech}^{-1}(a x) \text {Li}_2\left (-i e^{\text {sech}^{-1}(a x)}\right )}{a^3}-\frac {i \text {sech}^{-1}(a x) \text {Li}_2\left (i e^{\text {sech}^{-1}(a x)}\right )}{a^3}-\frac {i \text {Subst}\left (\int \frac {\text {Li}_2(-i x)}{x} \, dx,x,e^{\text {sech}^{-1}(a x)}\right )}{a^3}+\frac {i \text {Subst}\left (\int \frac {\text {Li}_2(i x)}{x} \, dx,x,e^{\text {sech}^{-1}(a x)}\right )}{a^3}\\ &=-\frac {x \text {sech}^{-1}(a x)}{a^2}-\frac {x \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)^2}{2 a^2}+\frac {1}{3} x^3 \text {sech}^{-1}(a x)^3-\frac {\text {sech}^{-1}(a x)^2 \tan ^{-1}\left (e^{\text {sech}^{-1}(a x)}\right )}{a^3}+\frac {\tan ^{-1}\left (\frac {\sqrt {\frac {1-a x}{1+a x}} (1+a x)}{a x}\right )}{a^3}+\frac {i \text {sech}^{-1}(a x) \text {Li}_2\left (-i e^{\text {sech}^{-1}(a x)}\right )}{a^3}-\frac {i \text {sech}^{-1}(a x) \text {Li}_2\left (i e^{\text {sech}^{-1}(a x)}\right )}{a^3}-\frac {i \text {Li}_3\left (-i e^{\text {sech}^{-1}(a x)}\right )}{a^3}+\frac {i \text {Li}_3\left (i e^{\text {sech}^{-1}(a x)}\right )}{a^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.33, size = 199, normalized size = 1.01 \begin {gather*} \frac {-6 a x \text {sech}^{-1}(a x)-3 a x \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)^2+2 a^3 x^3 \text {sech}^{-1}(a x)^3+3 i \left (-4 i \text {ArcTan}\left (\tanh \left (\frac {1}{2} \text {sech}^{-1}(a x)\right )\right )+\text {sech}^{-1}(a x)^2 \log \left (1-i e^{-\text {sech}^{-1}(a x)}\right )-\text {sech}^{-1}(a x)^2 \log \left (1+i e^{-\text {sech}^{-1}(a x)}\right )+2 \text {sech}^{-1}(a x) \text {PolyLog}\left (2,-i e^{-\text {sech}^{-1}(a x)}\right )-2 \text {sech}^{-1}(a x) \text {PolyLog}\left (2,i e^{-\text {sech}^{-1}(a x)}\right )+2 \text {PolyLog}\left (3,-i e^{-\text {sech}^{-1}(a x)}\right )-2 \text {PolyLog}\left (3,i e^{-\text {sech}^{-1}(a x)}\right )\right )}{6 a^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.38, size = 0, normalized size = 0.00 \[\int x^{2} \mathrm {arcsech}\left (a x \right )^{3}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x^{2} \operatorname {asech}^{3}{\left (a x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int x^2\,{\mathrm {acosh}\left (\frac {1}{a\,x}\right )}^3 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________